import Request from "../../core";

export const getBusinessList = (data) => {
  return Request.get("/pubDomainApp/mobile/shop/getBusinessList", data, {
    isLoading: true,
    callbackOptions: {
      // 请求返回选项
      all: true, // 返回全部
      errorAll: true, // 失败返回全部
    },
  });
};
//查看商户下面的门店
export const getBusinessShopList = (data) => {
  return Request.get("/pubDomainApp/mobile/shop/getBusinessShopList", data, {
    isLoading: true,
    callbackOptions: {
      // 请求返回选项
      all: true, // 返回全部
      errorAll: true, // 失败返回全部
    },
  });
};
//获取余额消费记录
export const getBalanceRecordList = (data) => {
  return Request.get("/balanceApp/phone/getBalanceRecordList", data);
};
//获取余额
export const getCustomerBalance = (data) => {
  return Request.get("/balanceApp/phone/getCustomerBalance", data);
};
//获取消费余额详情
export const getBalanceRecordDetail = (data) => {
  return Request.get("/balanceApp/phone/getBalanceRecordDetail", data);
};
